<template>
  <div class="login">
    <div class="header">
      <div class="header_life"><a href="#/home">〈</a></div>
      <div class="header_right">猫眼电影</div>
    </div>
    <div class="shoujihao"><input type="text" placeholder="请输入手机号">
      <button>发送验证码</button>
    </div>
    <div class="yanzhengma"><input type="text" placeholder="请输入短信验证码"></div>
    <div class="button">
      <button class="dl" @click="changeType">登录</button>
    </div>
  </div>
</template>
<!---->
<!---->
<script>
export default {
  name: "Login",
  methods: {
    changeType() {
      sessionStorage.setItem('loginType','1')
      this.$router.push('/me')
      alert("用户登录成功");
    }
  }
}
</script>

<style scoped>
* {
  padding: 0;
  margin: 0;
}

.header {
  width: 100%;
  height: 1.333rem;
  line-height: 1.333rem;
  background: red;
  display: flex;
  flex-direction: row;
  font-size: 0.533rem;
  color: #FFF;
}

.header_life {
  padding-left: 0.267rem;
}

.header_life a {
  color: #FFF;
}

.header_right {
  width: 100%;
}

.login {
  width: 100%;
}

.login input {
  background: none;
  outline: none;
  border: none;
  display: inline-block;

}

.shoujihao, .yanzhengma {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.6em;
}

.shoujihao input, .yanzhengma input {
  height: 1.067rem;
  line-height: 1.067rem;
  font-size: 1em;
}

.shoujihao input {
  width: 7.333rem;
}

.shoujihao button {
  margin-left: 0.133rem;
  color: #999;
  background-color: #dcdcdc;
  border: 1px solid #dcdcdc;
  padding: 0;
}

.yanzhengma input {
  width: 9.067rem;

}

.dl {
  width: 9.067rem;
  height: 1.067rem;
  color: #999;
  line-height: 1.067rem;
  border: none;
  border-radius: 0.133rem 0.133rem 0.133rem 0.133rem;
  margin-top: 0.8rem;
}
</style>